package com.woniu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.commons.exception.YogaException;
import com.woniu.model.form.AddClassroomForm;
import com.woniu.model.model.YVenueClassroom;
import com.woniu.model.param.PageAllClassroomParam;
import com.woniu.model.param.PageParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author EdisonLiu
 * @since 2024年05月23日
 */
public interface YVenueClassroomService extends IService<YVenueClassroom> {

    YVenueClassroom loadClassroomById(Integer id)throws YogaException;

    List<YVenueClassroom> loadClassroomByVenueId(Integer venueId);

    Integer addClassroom(AddClassroomForm form);

    Integer dropClassroom(Integer id);

    /**
     * 分页查询所有类型
     * @param param
     * @return
     * @throws Exception
     */
    public Page<YVenueClassroom> pageAllClassroom(PageAllClassroomParam param)throws YogaException;

    /**
     * 根据id教室启用
     * @param id 教室id（非场馆的教室id）
     * @return
     */
    public Integer enableClassroom(Integer id)throws YogaException;
}
